local hongjv = fk.CreateSkill {
  name = "tyj_heg__hongju",
  tags = { Skill.MainPlace, Skill.Limited },
}
local H = require "packages.ol_hegemony.util"
local U = require "packages.utility.utility"
Fk:loadTranslationTable {
  ["tyj_heg__hongju"] = "鸿举",
  [":tyj_heg__hongju"] = "主将技，限定技，此武将牌上单独的阴阳鱼数-1。准备阶段，你可以弃置你场上的所有牌，摸两倍的牌并展示之，然后你本回合使用这些牌与〖征荣〗均无次数限制。",
  ["#tyj_heg__hongju_prohibit"] = "鸿举",
  ["@@tyj_heg__hongju_bypass-inhand-turn"] = "鸿举",
  ["$tyj_heg__hongju1"] = "举烽火为号，你我共襄义举！",
  ["$tyj_heg__hongju2"] = "老贼久负不臣之心，某，先攻为敬！",
}
hongjv:addEffect(fk.EventPhaseStart, {
  anim_type = "big",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hongjv.name) and player.phase == Player.Start and
    player:usedSkillTimes(hongjv.name, Player.HistoryGame) == 0 and #player:getCardIds('ej') > 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local cards = player:getCardIds('ej')
    local num = #cards * 2
    room:throwCard(cards, hongjv.name, player, player)
    if num > 0 then
      local drawed = room:drawCards(player, num, hongjv.name, nil, "@@tyj_heg__hongju_bypass-inhand-turn")
      player:showCards(drawed)
    end
  end,
})
hongjv:addEffect("targetmod", {
  bypass_times = function(self, player, skill, scope, card, to)
    return card and card:getMark("@@tyj_heg__hongju_bypass-inhand-turn") > 0
  end,
})
return hongjv
